package com.hunliji.monitor.dao.model.dataobject;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 数据库实例信息表
 * </p>
 *
 * @author wu_chen
 * @since 2023-02-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("db_instance")
public class DbInstanceDO implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    /**
     * 实例名称
     */
    private String name;

    /**
     * 内网地址
     */
    private String intranetAddress;

    /**
     * 外网地址
     */
    private String networkAddress;

    /**
     * 实例端口
     */
    private Integer port;

    /**
     * 管理员账号
     */
    private String adminAccount;

    /**
     * 密码
     */
    private String password;

    /**
     * 实例类型,比如:RDS
     */
    private String instanceType;

    /**
     * 实例区域
     */
    private String region;

    /**
     * 实例ID,RDS才有
     */
    private String instanceId;

    /**
     * 数据库类型，比如MySQL
     */
    private String engineName;

    /**
     * 备注
     */
    private String remark;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;

    private Boolean deleted;


}
